import { convertNumberToTime } from '@/utils/handleTime'

export const columns = [
  // { title: '团战编号', dataIndex: 'id', key: 'id' },
  { title: '团战标题', dataIndex: 'title', key: 'title' },
  // { title: '团战价值', dataIndex: 'value', key: 'value' },
  // { title: '团战描述', dataIndex: 'content', key: 'content' },
  { title: '状态', key: 'status', scopedSlots: { customRender: 'status' } },
  { title: '到期日', dataIndex: 'dueDate', key: 'dueDate', customRender: convertNumberToTime },
  { title: '操作', key: 'operation', scopedSlots: { customRender: 'operation' } }
]

export const innerColumns = [
  // { title: '目标编号', dataIndex: 'id', key: 'id' },
  { title: '目标内容', dataIndex: 'content', key: 'content' },
  { title: '目标状态', key: 'status', scopedSlots: { customRender: 'status' } },
  { title: '目标到期日', dataIndex: 'dueDate', key: 'dueDate' },
  {
    title: '操作',
    key: 'operation',
    scopedSlots: { customRender: 'operation' }
  }
]
